package com.ten.stat.controller;

import com.ten.common.core.vo.Result;
import com.ten.stat.service.TbMemberService;
import com.ten.stat.vo.TbMemberVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * @author ：王薪伟
 * @date ：Created in 2022/12/9 10:53
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/stat/member")
@Api(tags = "统计用户接口类")
public class TbMemberController {

    @Autowired
    private TbMemberService memberService;

    @ApiOperation(value = "统计所有用户和讲师数量")
    @PostMapping("queryMemberTypeBang")
    public Result<List<TbMemberVo>> queryMemberTypeBang(){
        return memberService.findMemberType();
    }
}
